package com.raymond.dao;

import com.alibaba.fastjson.JSONObject;
import com.raymond.db.BaseDao;
import com.raymond.db.utils.PageInfo;
import com.raymond.db.utils.SqlHelper;
import com.raymond.entity.Test;
import com.raymond.entity.Test1;

import java.util.ArrayList;
import java.util.List;

/**
 * test1表dao层
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2019-12-17 11:08
 */
public class Test1Dao extends BaseDao<Test1> {
    public static void main(String[] args) throws Exception {
        Test1Dao testDao = new Test1Dao();
        PageInfo<Test1> pageInfo = new PageInfo<Test1>();
        Test test1 = new Test();
        test1.setName("asd");
        testDao.findPage(pageInfo);
        System.out.println(JSONObject.toJSONString(testDao.delete(test1)));
        System.out.println(JSONObject.toJSONString(pageInfo));
    }
}
